public class Mian {
    public static void main(String[] args) {
        int[] nums = {1,2,3,4};
        Solution solution = new Solution();
        System.out.println(solution.numberOfArithmeticSlices(nums));
        for (int i = 0; i < nums.length; i++) {
            System.out.print(nums[i]+" ");
        }
    }
}
